package com.edu.bean;

import java.util.Date;

public class User {
	
	private int userId;
	
	private String username;
	
	private String password;
	
	private String realName;
	
	private String sex;
	
	private Date birthday;
	
	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
	

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public User() {
		
	}
	

	public User(int userId, String username, String password, String realName, String sex, Date birthday,
			String[] hobbies) {
		super();
		this.userId = userId;
		this.username = username;
		this.password = password;
		this.realName = realName;
		this.sex = sex;
		this.birthday = birthday;
	}
	
	

	public User(String username, String password, String realName, String sex, Date birthday) {
		super();
		this.username = username;
		this.password = password;
		this.realName = realName;
		this.sex = sex;
		this.birthday = birthday;
	}

	@Override
	public String toString() {
		return "User [userId=" + userId + ", username=" + username + ", password=" + password + ", realName=" + realName
				+ ", sex=" + sex + ", birthday=" + birthday + "]";
	}


}
